# {'n_estimators': 5,
#  'dataset_test_size': 0.4,
#  'model': 'Random Forest Classifier',
#  'features': '(acc_x|acc_y|acc_z|gyro_y|label)',
#  'feature_count': 4,
#  'quantization': None,
#  'hz': 20,
#  'data_set': 'float'}


def add_vectors(v1, v2):
    return [sum(i) for i in zip(v1, v2)]

def score(input):
    if (input[31]) <= (-11.187024593353271):
        if (input[32]) <= (-19.596540451049805):
            var0 = [0.0, 1.0, 0.0, 0.0]
        else:
            var0 = [0.0, 0.0, 0.0, 1.0]
    else:
        if (input[9]) <= (0.5578489899635315):
            if (input[56]) <= (-0.03591302502900362):
                if (input[8]) <= (0.15801730006933212):
                    if (input[28]) <= (-1.0690111815929413):
                        var0 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        if (input[38]) <= (9.926361083984375):
                            if (input[31]) <= (-7.213740348815918):
                                var0 = [1.0, 0.0, 0.0, 0.0]
                            else:
                                var0 = [0.0, 1.0, 0.0, 0.0]
                        else:
                            var0 = [1.0, 0.0, 0.0, 0.0]
                else:
                    var0 = [0.0, 1.0, 0.0, 0.0]
            else:
                if (input[44]) <= (-1.5406688451766968):
                    var0 = [0.0, 1.0, 0.0, 0.0]
                else:
                    if (input[68]) <= (0.12569560110569):
                        if (input[71]) <= (1.5839694738388062):
                            var0 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var0 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        if (input[25]) <= (1.2138603925704956):
                            if (input[29]) <= (-6.171052768826485):
                                var0 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var0 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var0 = [0.0, 0.0, 1.0, 0.0]
        else:
            if (input[59]) <= (0.46183203160762787):
                var0 = [1.0, 0.0, 0.0, 0.0]
            else:
                if (input[58]) <= (10.132265090942383):
                    if (input[71]) <= (1.0534349977970123):
                        var0 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        if (input[11]) <= (-40.209926545619965):
                            var0 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            if (input[26]) <= (3.235762119293213):
                                var0 = [0.0, 0.0, 0.0, 1.0]
                            else:
                                var0 = [0.0, 0.0, 1.0, 0.0]
                else:
                    if (input[49]) <= (0.9876083135604858):
                        if (input[5]) <= (15.42553997039795):
                            if (input[10]) <= (10.104730129241943):
                                if (input[57]) <= (0.3232171982526779):
                                    var0 = [0.0, 0.0, 1.0, 0.0]
                                else:
                                    if (input[60]) <= (0.16041149944067):
                                        var0 = [1.0, 0.0, 0.0, 0.0]
                                    else:
                                        var0 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var0 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            var0 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        var0 = [1.0, 0.0, 0.0, 0.0]
    if (input[8]) <= (-0.6560112833976746):
        if (input[51]) <= (2.5419845581054688):
            if (input[31]) <= (-8.263359524309635):
                var1 = [0.0, 0.0, 0.0, 1.0]
            else:
                if (input[34]) <= (10.15979528427124):
                    if (input[65]) <= (0.003591299057006836):
                        var1 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        var1 = [1.0, 0.0, 0.0, 0.0]
                else:
                    if (input[6]) <= (10.860099792480469):
                        var1 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        var1 = [1.0, 0.0, 0.0, 0.0]
        else:
            if (input[37]) <= (1.624466061592102):
                if (input[28]) <= (2.6479870080947876):
                    var1 = [1.0, 0.0, 0.0, 0.0]
                else:
                    var1 = [0.0, 0.0, 0.0, 1.0]
            else:
                if (input[36]) <= (-9.967061668634415):
                    var1 = [0.0, 0.0, 0.0, 1.0]
                else:
                    var1 = [1.0, 0.0, 0.0, 0.0]
    else:
        if (input[56]) <= (0.05746084079146385):
            if (input[62]) <= (10.207674980163574):
                if (input[22]) <= (10.111909866333008):
                    if (input[12]) <= (1.29167165979743):
                        if (input[0]) <= (0.2801216021180153):
                            var1 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var1 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        var1 = [0.0, 1.0, 0.0, 0.0]
                else:
                    if (input[15]) <= (-4.190839409828186):
                        var1 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        if (input[80]) <= (0.08858547359704971):
                            if (input[16]) <= (0.785298079252243):
                                var1 = [1.0, 0.0, 0.0, 0.0]
                            else:
                                var1 = [0.0, 1.0, 0.0, 0.0]
                        else:
                            if (input[54]) <= (10.058041095733643):
                                var1 = [0.0, 1.0, 0.0, 0.0]
                            else:
                                var1 = [1.0, 0.0, 0.0, 0.0]
            else:
                if (input[38]) <= (7.649474620819092):
                    var1 = [0.0, 0.0, 0.0, 1.0]
                else:
                    if (input[26]) <= (10.462660312652588):
                        var1 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        if (input[83]) <= (6.660303592681885):
                            var1 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            var1 = [1.0, 0.0, 0.0, 0.0]
        else:
            if (input[17]) <= (1.3084315061569214):
                if (input[12]) <= (0.46806639432907104):
                    var1 = [1.0, 0.0, 0.0, 0.0]
                else:
                    if (input[16]) <= (1.5346832573413849):
                        if (input[36]) <= (0.16879119724035263):
                            var1 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            var1 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        var1 = [0.0, 1.0, 0.0, 0.0]
            else:
                if (input[31]) <= (-52.06488013267517):
                    var1 = [0.0, 0.0, 0.0, 1.0]
                else:
                    if (input[31]) <= (-1.4770990014076233):
                        if (input[33]) <= (-10.703279972076416):
                            var1 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            if (input[33]) <= (-7.538144111633301):
                                var1 = [0.3333333333333333, 0.0, 0.6666666666666666, 0.0]
                            else:
                                var1 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        var1 = [0.0, 0.0, 1.0, 0.0]
    if (input[42]) <= (7.995436668395996):
        var2 = [0.0, 0.0, 0.0, 1.0]
    else:
        if (input[72]) <= (0.02633622009307146):
            if (input[18]) <= (15.59672498703003):
                if (input[8]) <= (0.4489127993583679):
                    if (input[44]) <= (-0.7026982009410858):
                        var2 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        if (input[25]) <= (-0.7829039394855499):
                            if (input[49]) <= (0.1927332505583763):
                                var2 = [0.0, 1.0, 0.0, 0.0]
                            else:
                                var2 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            if (input[24]) <= (0.9888051152229309):
                                var2 = [1.0, 0.0, 0.0, 0.0]
                            else:
                                var2 = [0.0, 0.0, 1.0, 0.0]
                else:
                    if (input[54]) <= (10.238800048828125):
                        var2 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        var2 = [1.0, 0.0, 0.0, 0.0]
            else:
                var2 = [0.0, 0.0, 0.0, 1.0]
        else:
            if (input[36]) <= (-3.744531512260437):
                if (input[46]) <= (15.375264644622803):
                    if (input[42]) <= (10.605114936828613):
                        var2 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        var2 = [0.0, 0.0, 1.0, 0.0]
                else:
                    var2 = [0.0, 0.0, 0.0, 1.0]
            else:
                if (input[5]) <= (0.16041149944067):
                    if (input[13]) <= (9.083599239587784):
                        var2 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        var2 = [0.0, 0.0, 1.0, 0.0]
                else:
                    if (input[58]) <= (10.131064891815186):
                        var2 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        if (input[73]) <= (0.9085995852947235):
                            if (input[49]) <= (1.0785877704620361):
                                if (input[72]) <= (0.11851300299167633):
                                    if (input[1]) <= (1.9069820046424866):
                                        var2 = [0.0, 0.0, 1.0, 0.0]
                                    else:
                                        if (input[30]) <= (10.326189994812012):
                                            var2 = [1.0, 0.0, 0.0, 0.0]
                                        else:
                                            if (input[76]) <= (0.025139113888144493):
                                                var2 = [0.0, 0.0, 1.0, 0.0]
                                            else:
                                                var2 = [0.5, 0.0, 0.5, 0.0]
                                else:
                                    var2 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var2 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var2 = [1.0, 0.0, 0.0, 0.0]
    if (input[73]) <= (0.3794809877872467):
        if (input[38]) <= (10.086775302886963):
            if (input[27]) <= (-19.5152645111084):
                if (input[29]) <= (-0.4345475882291794):
                    var3 = [0.0, 0.0, 0.0, 1.0]
                else:
                    var3 = [1.0, 0.0, 0.0, 0.0]
            else:
                if (input[32]) <= (-2.1428104639053345):
                    if (input[80]) <= (0.1256955824792385):
                        if (input[30]) <= (7.7895348072052):
                            var3 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var3 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        var3 = [0.0, 0.0, 1.0, 0.0]
                else:
                    if (input[33]) <= (-2.6048914194107056):
                        var3 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        if (input[20]) <= (1.6771381497383118):
                            if (input[21]) <= (2.8335373997688293):
                                if (input[24]) <= (-11.074380159378052):
                                    var3 = [0.0, 1.0, 0.0, 0.0]
                                else:
                                    var3 = [1.0, 0.0, 0.0, 0.0]
                            else:
                                var3 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            var3 = [0.0, 1.0, 0.0, 0.0]
        else:
            if (input[52]) <= (-0.038307229056954384):
                if (input[2]) <= (10.012553215026855):
                    var3 = [1.0, 0.0, 0.0, 0.0]
                else:
                    if (input[44]) <= (-0.13407529890537262):
                        if (input[55]) <= (-0.39312979206442833):
                            var3 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var3 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        if (input[13]) <= (1.0450689857825637):
                            var3 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            if (input[42]) <= (10.140639781951904):
                                var3 = [0.0, 1.0, 0.0, 0.0]
                            else:
                                var3 = [0.0, 0.0, 1.0, 0.0]
            else:
                if (input[61]) <= (0.4513069987297058):
                    if (input[13]) <= (0.7541734874248505):
                        if (input[9]) <= (0.7445968687534332):
                            if (input[19]) <= (1.6832059621810913):
                                var3 = [1.0, 0.0, 0.0, 0.0]
                            else:
                                var3 = [0.0, 1.0, 0.0, 0.0]
                        else:
                            if (input[12]) <= (1.181538350880146):
                                var3 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var3 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        if (input[23]) <= (-2.6335874795913696):
                            if (input[69]) <= (0.2669534981250763):
                                var3 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var3 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            if (input[32]) <= (-5.940014362335205):
                                if (input[31]) <= (2.9732819199562073):
                                    var3 = [1.0, 0.0, 0.0, 0.0]
                                else:
                                    var3 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var3 = [0.0, 0.0, 1.0, 0.0]
                else:
                    if (input[32]) <= (-0.20111294835805893):
                        if (input[48]) <= (3.348291225731373):
                            var3 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            var3 = [0.0, 0.0, 0.0, 1.0]
                    else:
                        var3 = [1.0, 0.0, 0.0, 0.0]
    else:
        if (input[34]) <= (9.167398452758789):
            var3 = [0.0, 0.0, 0.0, 1.0]
        else:
            if (input[22]) <= (10.538079738616943):
                if (input[13]) <= (10.155903190374374):
                    var3 = [1.0, 0.0, 0.0, 0.0]
                else:
                    var3 = [0.0, 0.0, 1.0, 0.0]
            else:
                if (input[2]) <= (10.153810024261475):
                    if (input[5]) <= (0.147243469953537):
                        var3 = [1.0, 0.0, 0.0, 0.0]
                    else:
                        var3 = [0.0, 0.0, 0.0, 1.0]
                else:
                    var3 = [0.0, 0.0, 1.0, 0.0]
    if (input[73]) <= (0.41539400815963745):
        if (input[57]) <= (0.18076220154762268):
            if (input[64]) <= (0.19393029808998108):
                if (input[29]) <= (-6.871358394622803):
                    if (input[34]) <= (5.085285417735577):
                        var4 = [0.0, 0.0, 0.0, 1.0]
                    else:
                        var4 = [0.0, 0.0, 1.0, 0.0]
                else:
                    if (input[40]) <= (-0.1915360987186432):
                        if (input[67]) <= (-0.33969465643167496):
                            var4 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            if (input[81]) <= (-0.39025484025478363):
                                var4 = [1.0, 0.0, 0.0, 0.0]
                            else:
                                var4 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        if (input[58]) <= (10.090360164642334):
                            var4 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            if (input[30]) <= (9.94072437286377):
                                var4 = [0.0, 1.0, 0.0, 0.0]
                            else:
                                if (input[36]) <= (-0.9433153308928013):
                                    var4 = [0.0, 0.0, 1.0, 0.0]
                                else:
                                    var4 = [1.0, 0.0, 0.0, 0.0]
            else:
                if (input[34]) <= (7.183801174163818):
                    var4 = [0.0, 0.0, 0.0, 1.0]
                else:
                    if (input[75]) <= (1.2633585333824158):
                        var4 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        var4 = [1.0, 0.0, 0.0, 0.0]
        else:
            if (input[28]) <= (5.9519853591918945):
                if (input[56]) <= (0.05746084079146385):
                    if (input[53]) <= (-0.019153594970703125):
                        var4 = [0.0, 1.0, 0.0, 0.0]
                    else:
                        if (input[50]) <= (10.207679748535156):
                            if (input[43]) <= (26.80534690618515):
                                var4 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                var4 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var4 = [1.0, 0.0, 0.0, 0.0]
                else:
                    if (input[13]) <= (0.3902548998594284):
                        if (input[38]) <= (10.609905242919922):
                            var4 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var4 = [0.0, 0.0, 1.0, 0.0]
                    else:
                        if (input[69]) <= (3.4296939074993134):
                            if (input[58]) <= (10.290279865264893):
                                if (input[40]) <= (-0.46567219495773315):
                                    if (input[39]) <= (1.816793978214264):
                                        var4 = [0.0, 0.0, 1.0, 0.0]
                                    else:
                                        if (input[82]) <= (10.193310260772705):
                                            var4 = [0.4, 0.0, 0.6, 0.0]
                                        else:
                                            var4 = [0.0, 0.0, 1.0, 0.0]
                                else:
                                    var4 = [0.0, 0.0, 1.0, 0.0]
                            else:
                                if (input[83]) <= (1.8244275450706482):
                                    var4 = [0.0, 0.0, 1.0, 0.0]
                                else:
                                    var4 = [1.0, 0.0, 0.0, 0.0]
                        else:
                            var4 = [1.0, 0.0, 0.0, 0.0]
            else:
                if (input[33]) <= (-0.8523359149694443):
                    if (input[52]) <= (-3.7588967606425285):
                        var4 = [0.0, 0.0, 0.0, 1.0]
                    else:
                        if (input[20]) <= (7.354987516999245):
                            var4 = [0.0, 0.0, 1.0, 0.0]
                        else:
                            var4 = [0.0, 0.0, 0.0, 1.0]
                else:
                    var4 = [0.0, 1.0, 0.0, 0.0]
    else:
        if (input[34]) <= (9.182960510253906):
            var4 = [0.0, 0.0, 0.0, 1.0]
        else:
            if (input[20]) <= (0.5506663918495178):
                if (input[25]) <= (-1.9153611212968826):
                    if (input[43]) <= (-37.35496109724045):
                        var4 = [0.0, 0.0, 0.0, 1.0]
                    else:
                        var4 = [0.0, 0.0, 1.0, 0.0]
                else:
                    var4 = [1.0, 0.0, 0.0, 0.0]
            else:
                var4 = [0.0, 0.0, 1.0, 0.0]
    return add_vectors(add_vectors(add_vectors(add_vectors(var0, var1), var2), var3), var4)

def predict(input: list):
    res = score(input)
    return res.index(max(res))